Yes.
The number that is stored in a numerical variable can be changed
with a LET statement (and other statements).
Just as with numeric variables, string variables can be changed as the program runs. String variables can be changed:
LET statements using string literals.LET statements using other string variables.INPUT statements.Here is an example of the first two:
' Assignment with string variables ' LET NAME$ = "Luke Skywalker" PRINT NAME$ ' LET NAME$ = "Darth Vader" PRINT NAME$ ' LET PERSON$ = NAME$ PRINT PERSON$ ' END
LET statement creates NAME$
and puts "Luke Skywalker" into it.PRINT statement prints that out.LET statement copies
"Darth Vader" into NAME$, replacing
what was there before.PRINT statement prints "Darth Vader" LET statement creates PERSON$.
Then it gets characters from
NAME$ and copies them
into PERSON$.PRINT statement prints
"Darth Vader" because that is what is in
PERSON$So the screen will look like:
Luke Skywalker Darth Vader Darth Vader
Do you think you can change a string variable by copying a number into it, like:
LET NAME$ = 45.08